<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="now" value="<%=new java.util.Date()%>" />
<div class="contents">
    <h2>My Information</h2>
    <div class="information">
        <table>
            <tr>
                <c:if test="${currentUser.getPathImage() != null}">
                    <td rowspan="8"><img src="${currentUser.getPathImage()}"></td>
                    </c:if>
                    <c:if test="${currentUser.getPathImage() == null}">
                    <td rowspan="8"><img src="/JudiBlog/img/avatar/default.jpg"></td>
                    </c:if>
                <td>Username:</td>
                <td><label>${currentUser.getUserName()}</label></td>
            </tr>
            <tr>
                <td>Full name:</td>
                <td><label>${currentUser.getFullName()}</label></td>
            </tr>
            <tr>
                <td>Birthday:</td>
                <td><label><fmt:formatDate pattern="dd-MM-yyyy" value="${currentUser.getBirthday()}" /></label></td>
            </tr>
            <tr>
                <td>Gender:</td>
                <c:if test="${currentUser.isGender()}">
                    <td><label>Male</label></td>
                </c:if>
                <c:if test="${!currentUser.isGender()}">
                    <td><label>Famale</label></td>
                </c:if>
            </tr>
            <tr>
                <td>ID Card:</td>
                <td><label>${currentUser.getIdCard()}</label></td>
            </tr>
            <tr>
                <td>Address:</td>
                <td><label>${currentUser.getAddress()}</label></td>
            </tr>
            <tr>
                <td>Email:</td>
                <td><label>${currentUser.getEmail()}</label></td>
            </tr>
            <tr>
                <td>Phone:</td>
                <td><label>${currentUser.getPhone()}</label></td>
            </tr>
        </table>
    </div>
</div>